# -*- coding:utf-8 -*-

from sqlalchemy import Column, ForeignKey, String, Integer, DateTime, BigInteger
from config.database import BaseMixin, Base

class BgFileCategory(Base, BaseMixin):
    """
    文件分类表
    """
    __tablename__ = "bg_file_category"

    ancestors = Column(String(50), comment='祖级列表')
    category_name = Column(String(30), comment='分类名称')
    file_count = Column(Integer, comment='文件数量')
    order_num = Column(Integer, comment='显示顺序')
    parent_id = Column(BigInteger, comment='父部门id')
    status = Column(String(1), default='0', comment='分类状态')


